package cn.com.computer.my.book.dal.domain;


import java.io.Serializable;
import java.util.Date;

/**
 * Created by WANGXin on 2017/5/20.
 */
public class OriginalRaidersBookDO implements Serializable{
    /**
     * 主键id
     */
    private Long id;
    /**
     * 游戏名称
     */
    private String gameName;
    /**
     * 游戏平台
     */
    private String gamePlatForm;
    /**
     * 游戏攻略出处
     */
    private String bookFrom;
    /**
     * 游戏攻略出处版本
     */
    private String bookVersion;
    /**
     * 游戏攻略大小
     */
    private String bookCapacity;
    /**
     * 游戏攻略保存目录
     */
    private String bookPath;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 状态
     */
    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public String getGamePlatForm() {
        return gamePlatForm;
    }

    public void setGamePlatForm(String gamePlatForm) {
        this.gamePlatForm = gamePlatForm;
    }

    public String getBookFrom() {
        return bookFrom;
    }

    public void setBookFrom(String bookFrom) {
        this.bookFrom = bookFrom;
    }

    public String getBookVersion() {
        return bookVersion;
    }

    public void setBookVersion(String bookVersion) {
        this.bookVersion = bookVersion;
    }

    public String getBookCapacity() {
        return bookCapacity;
    }

    public void setBookCapacity(String bookCapacity) {
        this.bookCapacity = bookCapacity;
    }

    public String getBookPath() {
        return bookPath;
    }

    public void setBookPath(String bookPath) {
        this.bookPath = bookPath;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OriginalRaidersBookDO that = (OriginalRaidersBookDO) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (gameName != null ? !gameName.equals(that.gameName) : that.gameName != null) return false;
        if (gamePlatForm != null ? !gamePlatForm.equals(that.gamePlatForm) : that.gamePlatForm != null) return false;
        if (bookFrom != null ? !bookFrom.equals(that.bookFrom) : that.bookFrom != null) return false;
        if (bookVersion != null ? !bookVersion.equals(that.bookVersion) : that.bookVersion != null) return false;
        if (bookCapacity != null ? !bookCapacity.equals(that.bookCapacity) : that.bookCapacity != null) return false;
        if (bookPath != null ? !bookPath.equals(that.bookPath) : that.bookPath != null) return false;
        if (createBy != null ? !createBy.equals(that.createBy) : that.createBy != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        return status != null ? status.equals(that.status) : that.status == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (gameName != null ? gameName.hashCode() : 0);
        result = 31 * result + (gamePlatForm != null ? gamePlatForm.hashCode() : 0);
        result = 31 * result + (bookFrom != null ? bookFrom.hashCode() : 0);
        result = 31 * result + (bookVersion != null ? bookVersion.hashCode() : 0);
        result = 31 * result + (bookCapacity != null ? bookCapacity.hashCode() : 0);
        result = 31 * result + (bookPath != null ? bookPath.hashCode() : 0);
        result = 31 * result + (createBy != null ? createBy.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "OriginalRaidersBookDO{" +
                "id=" + id +
                ", gameName='" + gameName + '\'' +
                ", gamePlatForm='" + gamePlatForm + '\'' +
                ", bookFrom='" + bookFrom + '\'' +
                ", bookVersion='" + bookVersion + '\'' +
                ", bookCapacity='" + bookCapacity + '\'' +
                ", bookPath='" + bookPath + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status='" + status + '\'' +
                '}';
    }
}
